package avicit.bdp.dds;

/**
 * TODO
 *
 * @author xugb
 * @date 2023/3/14 11:11
 */
public class MyTest {
    public static void main(String[] args) {
        String path = "/user/bdp/xxxx";
        String[] tmp = path.split("/");
        System.out.println(tmp.length + "   " + tmp[tmp.length - 1]);
        System.out.println(path.substring(0, path.lastIndexOf("/")));
    }
}
